package com.hsgene.consumables.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.util.Date;

/**
 * 入库记录
 */
public class GeneticGoodsPurchaseDto {
    /**
     * 编号
     */
    private Integer number;

    private String id;
    /**
     * 耗材名称
     */
    private String name;

    private String goodsId;
    /**
     * 入库编号
     */
    private String purchaseNo;
    /**
     * 入库人员
     */
    private String purchaseMember;

    private Integer purchaseAmount;
    /**
     * 出货单位
     */
    private String convertUnit;
    /**
     * 进货单位
     */
    private String stockUnit;
    /**
     * r入库时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date purchaseDateTime;

    private Integer convertAmount;

    private Integer deleteFlag;

    private String remarks;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public String getPurchaseNo() {
        return purchaseNo;
    }

    public void setPurchaseNo(String purchaseNo) {
        this.purchaseNo = purchaseNo == null ? null : purchaseNo.trim();
    }

    public String getPurchaseMember() {
        return purchaseMember;
    }

    public void setPurchaseMember(String purchaseMember) {
        this.purchaseMember = purchaseMember == null ? null : purchaseMember.trim();
    }

    public Integer getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(Integer purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public Date getPurchaseDateTime() {
        return purchaseDateTime;
    }

    public void setPurchaseDateTime(Date purchaseDateTime) {
        this.purchaseDateTime = purchaseDateTime;
    }

    public Integer getConvertAmount() {
        return convertAmount;
    }

    public void setConvertAmount(Integer convertAmount) {
        this.convertAmount = convertAmount;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }


    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getConvertUnit() {
        return convertUnit;
    }

    public void setConvertUnit(String convertUnit) {
        this.convertUnit = convertUnit;
    }

    public String getStockUnit() {
        return stockUnit;
    }

    public void setStockUnit(String stockUnit) {
        this.stockUnit = stockUnit;
    }
}